import json
from config.config import *

import os



def get_test_result_data():
    """
    通过读取html报告目录下面的summary.json来获取最终的概览数据
    """
    # summary_path = get_report_path()
    summary_path = os.path.normpath(
        r"C:\Users\Administrator\Desktop\gitee\api_auto_test\report\json_report\summary.json")
    with open(summary_path,"r",encoding="utf-8") as fq:
      summary = json.load(fq)
    return summary.get("statistic")